package pers.wensheng.patterns.behavioral_pattern.strategy_pattern.advanced.entity;

import pers.wensheng.patterns.behavioral_pattern.strategy_pattern.advanced.enums.PayEnum;

/**
 * 微信支付实现
 */
public class WXPay implements PayStrategy{
    /**
     * 支付
     *
     * @param money 支付金额
     */
    @Override
    public void pay(Integer money) {
        System.out.println("微信支付支付了"+money+"元！");
    }

    /**
     * 类型
     *
     * @return
     */
    @Override
    public PayEnum type() {
        return PayEnum.WXPay;
    }
}
